Pronamic\WordPress\Pay\Subscriptions\Subscription C

Total Complexity 108
Dependencies 13
Dependents 27
Total lines 933
Lines of code 427
Logical lines of code 238
Comment lines 327
Methods 42
Properties 4

Methods 42

Method Rating Maintainability Complexity Lines of code
get_payments_by_period()
A
47 9 36
from_json()
A
50 9 27
get_display_phase()
A
54 9 26
get_renewal_period()
S
53 6 23
is_first_payment()
S
54 6 22
get_phase_for_date()
S
63 4 12
add_note()
S
53 3 27
set_next_payment_date()
S
66 4 8
get_json()
S
60 3 12
set_status()
S
70 3 6
get_source_text()
S
58 2 15
all_periods_created()
S
68 3 8
is_infinite()
S
68 3 8
get_current_phase()
S
69 2 7
get_start_date()
S
69 2 7
get_period_for_date()
S
69 2 7
in_trial_period()
S
69 2 7
get_next_period()
S
69 2 7
next_period()
S
69 2 7
get_phase_by_sequence_number()
S
68 2 7
add_phase()
S
68 2 7
get_end_date()
S
69 2 7
get_date_interval()
S
69 2 7
new_payment()
S
58 1 15
get_source_description()
S
64 2 10
get_source_link()
S
64 2 10
get_payments()
S
69 2 7
new_period()
S
68 2 7
get_next_payment_delivery_date()
S
64 2 10
get_mandate_selection_url()
S
63 1 11
get_renewal_url()
S
63 1 11
get_cancel_url()
S
63 1 11
new_phase()
S
70 1 6
save()
S
81 1 3
set_phases()
S
81 1 3
jsonSerialize()
S
81 1 3
get_next_payment_date()
S
82 1 3
get_phases()
S
82 1 3
set_activated_at()
S
81 1 3
get_activated_at()
S
82 1 3
get_status()
S
82 1 3
__construct()
S
73 1 5